<LayoutEditFormBox :loading="loading">

    <template slot="main">

        <el-form ref="editForm" :model="form" label-width="100px" label-position="left">
            <LayoutCell>
                <LayoutCellItem title="基础设置">

                    <el-form-item label="OTO门店" prop="store_status">
                        <el-radio-group v-model="form.store_status">
                            <el-radio :label="1">开</el-radio>
                            <el-radio :label="0">关</el-radio>
                        </el-radio-group>
                    </el-form-item>
                    <el-form-item label="商品审核" prop="goods_auth">
                        <el-radio-group v-model="form.goods_auth">
                            <el-radio :label="1">开</el-radio>
                            <el-radio :label="0">关</el-radio>
                        </el-radio-group>
                    </el-form-item>
                    <el-form-item label="订单退款操作" prop="usable_rights">
                        <el-radio-group v-model="form.usable_rights">
                            <el-radio :label="1">开</el-radio>
                            <el-radio :label="0">关</el-radio>
                        </el-radio-group>
                    </el-form-item>
                </LayoutCellItem>
            </LayoutCell>

            <LayoutCell>
                <LayoutCellItem title="结算设置">
                    <el-form-item label="结算方式" prop="settle_type" :rules="{ required: true, message: '请选择结算方式'}">
                        <el-checkbox-group v-model="form.settle_type">
                            <el-checkbox v-for="item in type" :key="item.id" :label="item.type_id">
                                {{ item.desc }}</el-checkbox>
                        </el-checkbox-group>
                    </el-form-item>
                    <el-form-item label="抽佣比例" prop="cost_ratio" :rules="[{ required: true, trigger: ['blur', 'change'],validator:function(rule, value, callback){validatorNumber(rule, value, callback)}}]">
                        <el-input v-model="form.cost_ratio" style="width: 150px;"><template slot="append">%</template></el-input>
                    </el-form-item>
                    <el-form-item label="结算天数" prop="settle_cycle" :rules="[{trigger: ['blur', 'change'] ,validator: $vFN.Tools.validateStock}]">
                        订单确认收货后
                        <el-input v-model.number="form.settle_cycle" style="width: 150px;"><template slot="append">天</template></el-input>
                        能申请提现
                    </el-form-item>
                </LayoutCellItem>
            </LayoutCell>

        </el-form>

    </template>
    <template slot="footer">
        <el-button type="primary" @click="sum()">确定</el-button>
    </template>

</LayoutEditFormBox>